﻿using System.IO;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace WCFServices
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IR2Services" in both code and config file together.
    [ServiceContract]
    public interface IR2Services
    {
        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "/HelloWorld/{name}", RequestFormat = WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json)]
        Stream HelloWorld(string name);
    }
}